<?php

require_once("beans/User.php");
require_once("beans/Profile.php");
require_once("beans/Token.php");
require_once("beans/Tooltip.php");
require_once("beans/NomCategorie.php");
require_once("beans/Categorie.php");
require_once("beans/Langue.php");
require_once("dao/DAO.php");
require_once("dao/CategorieDAO.php");
require_once("dao/TooltipDAO.php");
require_once("dao/NomCategorieDAO.php");
require_once("dao/LangueDAO.php");
require_once("dao/UserDAO.php");
require_once("dao/ProfileDAO.php");
require_once("dao/TokenDAO.php");
require_once("util/Exceptions.php");
require_once("util/Validator.php");
require_once("generators/LoginFormGenerator.php");
require_once("generators/CaptchaGenerator.php");
require_once("generators/ThirdFailureCaptchaGenerator.php");
require_once("../securimage/securimage.php");
require_once("util/XMLEngine.php");
session_start();
if(isset($_POST["email"]) and isset($_POST["keep"])){
$val = $_POST["email"];
setcookie("email", $val,time()+31536000,"/");
}
?> 
<?php
/*
 * Created on 21 janv. 2009
 * Created by Ludovic Reenaers
 * lreenaers@hotmail.com
 * 
 * Point entrée MVC, force utilisation du controler
 * ex: http://localhost/brahma/php/index.php/showForm/User
 * 
 * function __autoload($className) {
 *    loadClass($className);
 *}

 *function loadClass($className) {
 *   include_once('classes/' . str_replace('_', '/', $className) . '.php');
 *}
 */

function __autoload($className)
{
	
	loadClass($className);
}
function loadClass($className) {
	
    include_once(str_replace('_', '/', $className).".php");
 
 }

$control=new Controler();

?>
